<?php $this->load->view('left_side.php'); ?>


<div class="middle-contenter">
    <div class='dashboard-contenter-header'>
        <a style='text-decoration: none;' href="<?php echo base_url(); ?>index.php/site/members_area/">Home &gt; </a>
        Store
    </div>
<center>
<?php 
    
    $productmodel = array(
                'name' => 'productmodel',
                'value' => '',
                'style' => '', 
                );
    
    $quantity = array(
                'name' => 'quantity',
                'value' => '',
                );
    
    $price = array(
                'name' => 'productprice',
                );

    $submit = array(
                'name' => 'submit',
                'value' => 'Submit',
                );
    
    echo form_open('store/store_new_db');            
    
    echo '<table>';

    echo '<tr><td>Product Model</td><td><select name="productmodel">';
    foreach($productlist as $item)
    {
        echo "<option value='". $item->cs_product_id ."S". $item->cs_vendor_id ."'>". $item->cs_vendor_name .' '. $item->cs_product_model ."</option>";
    }
    echo '</select></td></tr>';
    
    echo '<tr><td>Product Quantity</td><td>'. form_input($quantity) . '</td></tr>';
    echo '<tr><td>Price</td><td>'. form_input($price). '</td></tr>';
    echo '<tr><td colspan="2">'. form_submit($submit) .'</td></tr>';
    echo '</table>';
?>
    </form>
</center>

</div>